package com.xyoto.community.enums;

/**
 * 动态评论枚举类
 */
public enum DynamicCommentEnum implements Code {


    DYNAMIC_COMMENT_NOT_EXIST(1181,"动态评论不存在"),
    DELETED(1182,"该动态评论已被删除"),
    DYNAMIC_COMMENT_DELETE_FAILED(1183,"动态评论删除失败"),
    DYNAMIC_COMMENT_ADD_FAIL(1184, "动态评论添加失败")
    ;

   private int code;
   private String msg;
    DynamicCommentEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
